Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented audienceNetwork (facebook) bidder for ortb endpoint #4

Merged
merged 4 commits into from
Apr 5, 2018

Conversation

anestere
Copy link
Contributor

@anestere anestere commented Apr 4, 2018

No description provided.

@anestere anestere requested a review from rpanchyk April 4, 2018 09:44
Copy link
Contributor

@rpanchyk rpanchyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments.

.map(SeatBid::getBid)
.filter(Objects::nonNull)
.flatMap(Collection::stream)
.limit(1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Limit is not applicable for OpenRTB. Should be removed.

.build();
}

private Imp makeImp(Imp imp, String pubId) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Input arg pubId should be named like placementId.

}

@Override
public Map<String, String> extractTargeting(ObjectNode ext) {
return Collections.emptyMap();
}

private ExtImpFacebook parseExtImpFacebook(Imp imp) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rearrange all methods in call order, but not by public/private/etc for better reading.


public class FacebookBidderTest extends VertxTest {

private static final String ENDPOINT_URL = "https://sovrn.com/openrtb2d";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix sovrn url pls.

.flatExtracting(BidRequest::getImp)
.isEmpty();
assertThat(result.getErrors()).hasSize(1)
.element(0).extracting(BidderError::getMessage)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.element(0) call can be skipped. Check all bellow cases for this pls.

return null;
}

final int h = banner.getH();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we sure in non-null values?

return placementIdSplit[0];
}

private Site makeSite(BidRequest bidRequest, String pubId) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method can be static. See all other pls.

@rpanchyk rpanchyk merged commit 57f6d01 into master Apr 5, 2018
@rpanchyk rpanchyk deleted the audienceNetwork-bidder branch April 5, 2018 09:48
schernysh pushed a commit that referenced this pull request Nov 25, 2019
* Added support reading country from RSID cookie for GDPR

* Added support reading country from RSID cookie for GDPR - fix PR

* Added support reading country from RSID cookie for GDPR - fix PR

* Added support reading country from RSID cookie for GDPR - add gdpr.rubicon.rsid-cookie-encryption-key property to docs

* Merge branch 'master-rubicon' into gdpr-read-country-from-rsid-cookie

# Conflicts:
#	docs/config-app.md
#	src/main/java/org/prebid/server/gdpr/GdprService.java
#	src/main/java/org/prebid/server/handler/SetuidHandler.java
#	src/main/java/org/prebid/server/spring/config/ServiceConfiguration.java
#	src/rpm/application.yaml
#	src/test/java/org/prebid/server/gdpr/GdprServiceTest.java
#	src/test/resources/org/prebid/server/ApplicationTest/test-application.properties
VeryExtraordinaryUsername added a commit that referenced this pull request Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants